<div id="wrap">
  <div class="module">
    <h1>Listing authors</h1>

    <table class="authors">
      <tr>
        <th>First Name</th>
        <th>Last Name</th>
        <th></th>
        <th></th>
        <th></th>
      </tr>

    <% @authors.each do |author| %>
      <tr>
        <td><%= author.firstname %></td>
        <td><%= author.lastname %></td>
        <td><%= link_to 'Show', author %></td>
        <td><%= link_to 'Edit', edit_author_path(author) %></td>
        <td><%= link_to 'Destroy', author, 
              :confirm => 'Are you sure?  Deleting an author will also delete 
              all of that author\'s books!', :method => :delete %></td>
        <!-- TODO:  Need to create a deletion confirm page, show which books
          would be deleted if this author is removed.-->
      </tr>
    <% end %>
    </table>

    <br />

    <%= link_to 'New Author', new_author_path, :class => 'more' %>
  </div>
</div>